package com.fourtwenty.hemptress.plugin.joinoninvite;

import com.fourtwenty.hemptress.PluginEventBot;
import com.fourtwenty.hemptress.plugin.annotate.Plugin;
import com.fourtwenty.hemptress.plugin.annotate.events.OnInvite;
import com.fourtwenty.hemptress.plugin.annotate.parameters.Channel;

@Plugin
public class JoinOnInvite {
	private PluginEventBot bot;
	
	public JoinOnInvite(PluginEventBot bot) {
		this.bot = bot;
	}
	
	@OnInvite
	public void join(@Channel String channel) {
		bot.joinChannel(channel);
	}
}
